package com.pmcc.cj.repository;

import com.pmcc.cj.entity.CjMoneyRecord;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

/**
 * Created by tomas on 2020/10/10.
 */
public interface CjMoneyRecordRepository extends JpaRepository<CjMoneyRecord,String> {
    List<CjMoneyRecord> findByCustomerBelongIdOrderByCreateDateDesc(String customerBelongId);
    List<CjMoneyRecord> findByCustomerBelongIdAndFettleAndCreateDateBetweenOrderByCreateDateDesc(String customerBelongId, int fettle, Date startTime,Date endTime);
}
